package com.atguigu.service;

import com.atguigu.base.BaseService;
import com.atguigu.entity.UserFollow;
import com.atguigu.vo.UserFollowVo;
import com.github.pagehelper.PageInfo;

public interface UserFollowService extends BaseService<UserFollow>{

    /**
     * 根据用户id和房源id查询用户关注房源的记录
     * @param userId    用户id
     * @param houseId   房源id
     * @return
     */
    UserFollow findByUserIdAndHouseId(Long userId, Long houseId);

    /**
     * 查询用户分页关注信息列表
     * @param pageNum
     * @param pageSize
     * @param userId
     * @return
     */
    PageInfo<UserFollowVo> findListPage(Integer pageNum, Integer pageSize, Long userId);
}
